package com.hns.can.master.web;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hns.can.common.web.BaseController;
import com.hns.can.master.service.HomeAirConditionService;
import com.hns.can.master.vo.HomeAirConditionIndexVo;

@Controller
@RequestMapping("homeAirCondition")
public class HomeAirConditionController extends BaseController {
	
	@Autowired
	private HomeAirConditionService homeAirConditionService;
	
	@RequestMapping("/getTotalIndex")
	@ResponseBody
	public Object getTotalIndex(){
		Map map = new HashMap();
		map.put("userId", this.getCurrentUser().getUser().getId());
		HomeAirConditionIndexVo entity = homeAirConditionService.getTotalIndex(map);
		return this.getReturnResult(entity);
	}
}
